﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Drawing;
using System.Windows.Forms;
using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Styx.Logic.POI;

namespace HarmoniousVigor
{
    public partial class Hunter
    {
        public bool survivalCombat()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (survivalPVPCombat())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (survivalDungeonCombat())
                    return true;
            }
            else
            {
                if (survivalQuestingCombat())
                    return true;
            }

            return false;
        }
        public bool survivalHeal()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (survivalPVPHeal())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (survivalDungeonHeal())
                    return true;
            }
            else
            {
                if (survivalQuestingHeal())
                    return true;
            }

            return false;
        }
        public bool survivalBuff()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (survivalPVPBuff())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (survivalDungeonBuff())
                    return true;
            }
            else
            {
                if (survivalQuestingBuff())
                    return true;
            }

            return false;
        }
        public bool survivalPullSpell()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (survivalPVPPullSpell())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (survivalDungeonPullSpell())
                    return true;
            }
            else
            {
                if (survivalQuestingPullSpell())
                    return true;
            }

            return false;
        }
    }
}
